package com.jse.oo.design.pattern.behavioral.strategy.simple;

import org.junit.Test;

/**
 * @author : zenghua
 * @version : v0.1 SimpleTest.java
 * @since : 2017/8/15 20:38
 */
public class SimpleTest {

	@Test
	public void testSimple() {
		Context context = new Context();
		IStrategy smileStrategy = new SmileStrategy();
		context.setStrategy(smileStrategy);
		context.execute();

		IStrategy thinkStrategy = new ThinkStrategy();
		context.setStrategy(thinkStrategy);
		context.execute();
	}
}
